package com.example.zhihuhelpapp.api;

import com.example.zhihuhelpapp.bean.AnswerResultBean;
import com.example.zhihuhelpapp.bean.JDOrderResult;
import com.example.zhihuhelpapp.bean.QuestionResultBean;

import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import retrofit2.http.Url;
import rx.Observable;

public interface IApiService {
    @GET("questions/{id}/answers")
    Observable<QuestionResultBean> getQuestionDetail(@Path("id") String questionId,
                                                     @Query("limit") int limit, @Query("offset") int offset);

    @GET("answers/{id}")
    Observable<AnswerResultBean> getAnswerDetail(@Path("id") String answerId);

    @GET("members/{userId}/answers")
    Observable<Object> getUserAnswerList(@Path("userId") String userId, @Query("limit") int limit, @Query("offset") int offset);

    @GET
    Observable<JDOrderResult> getJongDongOrderInfo(@Url String url);


}
